<?php
	include_once '../common_mbs.inc.php';
	include_once '../smarty.inc.php';

	//名企贵宾通道
	$company_obj = new company_cls();
	$company_data = $company_obj->get_company_list(false, '', 'add_time desc', '0, 6');
	$smarty->assign('company_list', $company_data);

	//旅游功略
	$news_type_obj  = new news_type_cls();
	$news_type_data = $news_type_obj->get_news_type_list(false, '', 'od desc', '0, 4');
	$news_obj = new news_cls();
	$news = array();
	for($i=0; $i<4; $i++)
	{		
		$news[$i]['name'] = $news_type_data[$i]['news_type_name'];
		$news[$i]['content'] = $news_obj->get_news_list(false, "news_type ={$news_type_data[$i]['news_type_id']}", 'news_addtime desc', '0, 6');
	}
	$smarty->assign('news_list',$news);

	//订购指南
	$book_list = $news_obj->get_news_list(false, "news_type =24", 'news_addtime desc', '0, 4');
	$smarty->assign('book_list',$book_list);

	//注册与登录
	$login_list = $news_obj->get_news_list(false, "news_type =25", 'news_addtime desc', '0, 4');
	$smarty->assign('login_list',$login_list);
	
	//支付与取票
	$pay_list = $news_obj->get_news_list(false, "news_type =26", 'news_addtime desc', '0, 4');
	$smarty->assign('pay_list',$pay_list);
	
	//沟通与订阅
	$read_list = $news_obj->get_news_list(false, "news_type =27", 'news_addtime desc', '0, 4');
	$smarty->assign('read_list',$read_list);
	

	$smarty->assign('part','index');
	$smarty->display('home/index.tpl');
?>
